<?php
class ccdsXajax
{
    function __construct( ) { }

    function &getInstance( )
    {
        static $obj;

        if ( !$obj )
        {
            $config=ccdsConfig::getInstance();
            require_once( $config->get( 'LIBRARY_DIR' ) . "xajax/xajax_core/xajax.inc.php" );

            $obj=new xajax();

            require_once $config->get( 'CMS_DIR' ) . "base/ccdsXajaxRequestPlugin.inc.php";
            require_once $config->get( 'CMS_DIR' ) . "base/ccdsXajaxResponsePlugin.inc.php";
            require_once $config->get( 'LIBRARY_DIR' ) . 'xajax/xajax_plugins/request/swfupload/swfupload.inc.php';
            require_once $config->get( 'LIBRARY_DIR' ) . 'xajax/xajax_plugins/response/TabManager/TabManager.inc.php';
        }
        return $obj;
    }
}
